package com.hhxy.book.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 一粒尘埃
 * @since 2023-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Book对象", description="")
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "图书编号")
    @TableId(value = "book_id", type = IdType.ID_WORKER_STR)
    private String bookId;

    @ApiModelProperty(value = "分类id")
    private String typeId;

    @ApiModelProperty(value = "图书名称")
    private String bookName;

    @ApiModelProperty(value = "图书出版社")
    private String bookPress;

    @ApiModelProperty(value = "图书图片")
    private String bookImg;

    @ApiModelProperty(value = "图书作者")
    private String bookAuthor;

    @ApiModelProperty(value = "图书页数")
    private String bookPagnation;

    @ApiModelProperty(value = "图书价格")
    private Double bookPrice;

    @ApiModelProperty(value = "图书上架时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "图书状态（0：上架，1：已下架）")
    private Integer status;

    @ApiModelProperty(value = "图书总数")
    private Integer bookSum;

    @ApiModelProperty(value = "剩余图书")
    private Integer bookNum;

    @ApiModelProperty(value = "逻辑删除（0：未删除，1：已删除）")
    private Integer deleted;


}
